#!/usr/bin/env python
# coding: utf-8

'''
    >>> 1 + 1
    2
    
'''

import math

def rad2deg(r):
    '''converte radianos para graus
    
    >>> rad2deg(0)
    0.0
    >>> import math
    >>> rad2deg(math.pi)
    180.0 
    >>> rad2deg(math.pi/2)
    90.0
    
    '''
    return r/math.pi*180

if __name__=='__main__':
    import doctest
    opcoes = doctest.REPORT_ONLY_FIRST_FAILURE|doctest.NORMALIZE_WHITESPACE
    doctest.testmod(optionflags=opcoes)
